import React from "react";
import { Select } from "antd";
import { CONTROL_LEVER_LIST } from "@/constants/monitorWarning";

const { Option } = Select;

class ControlLevelSelect extends React.Component {
    render() {
        return (
            <Select placeholder="选择管控等级" {...this.props}>
                {CONTROL_LEVER_LIST.map((item, index) => {
                    return (
                        <Option key={index} value={item.key}>
                            {item.text}
                        </Option>
                    );
                })}
            </Select>
        );
    }
}

export default ControlLevelSelect;
